<script setup lang="ts">
import { onLaunch, onShow, onHide } from '@dcloudio/uni-app'
import { routerBeforeEach } from '@/utils/permission'
import { getUpdate } from '@/utils/index'
onLaunch(() => {
  // 对路由进行统一拦截，实现路由导航守卫 router.beforeEach 功能
  routerBeforeEach()
  // console.log("App Launch");
})
onShow(() => {
  // console.log("App Show");
  getUpdate()
})
onHide(() => {
  // console.log("App Hide");
})
</script>

<style lang="scss">
@import 'nutui-uniapp/styles/index';
@import 'uview-plus/index.scss';
@import '@/styles/index.scss';
@import '@/styles/animate.min.css';
</style>